package routers

import (
	"group-router/controllers/user"

	"github.com/gin-gonic/gin"
)

func UserRoutersInit(r *gin.Engine) {
	apiUserR := r.Group("api/user")
	{
		apiUserR.GET("success", user.UserController{}.Success)
		apiUserR.POST("list", user.UserController{}.GetUserList)
		apiUserR.POST("add", user.UserController{}.AddUser)
		apiUserR.POST("update", user.UserController{}.UpdateUser)
		apiUserR.POST("delete", user.UserController{}.DeleteUser)
	}
}
